﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using OrderIT.Model;

namespace OrderIT.Web.Controllers
{ 
    public class UserController : Controller
    {
        private OrderITEntities db = new OrderITEntities();
       
        public ViewResult Index()
        {
            var reslut = from  o in db.Companies.OfType<Customer>() select o;
            return View(reslut.ToList());
        }

    }
}